export const ColumnProps = [
    {
        title: 'APP名称',
        dataIndex: 'appName',
        width: 300,
        ellipsis: true
    },
    {
        title: '文件名称',
        dataIndex: 'fileName',
        width: 200,
        ellipsis: true
    },
    {
        title: '版本名称',
        dataIndex: 'versionName',
        width: 200,
        ellipsis: true
    },
    {
        title: '版本号',
        dataIndex: 'versionCode',
        width: 200,
        ellipsis: true
    },
    {
        title: '创建人',
        dataIndex: 'creator',
        width: 200,
        ellipsis: true
    },
    {
        title: '创建时间',
        dataIndex: 'createTime',
        width: 300,
        ellipsis: true
    },
    {
        title: '修改人',
        dataIndex: 'updater',
        width: 200,
        ellipsis: true
    },
    {
        title: '修改时间',
        dataIndex: 'updateTime',
        width: 300,
        ellipsis: true
    },
]


export const RuleProps = {
    appName: [{ required: true, message: 'APP名称不能为空' }],
    versionName: [{ required: true, message: '版本名不能为空' }],
    versionCode: [{ required: true, message: '版本不能为空' }],
    versionPath: [{ required: true, message: '版本路径不能为空' }],
    versionContext: [{ required: true, message: '版本描述不能为空' }],
}


export const FormProps = {
    id: '',
    appName: '',
    versionName: '',
    versionCode: '',
    fileName: '',
    targetFileName: '',
}


export const FilterItems = [
    {
        type: 'input',
        label: 'APP名称',
        key: 'appName',
        placeholder:'请输入APP名称',
        maxLength: 20
    },
    {
        type: 'input',
        label: '版本名称',
        key: 'versionName',
        placeholder:'请输入版本名称',
        maxLength: 20
    },
]


export const FormItems = [
    {
        type: 'input',
        label: 'APP名称',
        key: 'appName',
        isShow: true,
        data: [ ],
        disabled: true,
        placeholder:'请输入APP名称',
    },
    {
        type: 'input',
        label: '版本名称',
        isShow: true,
        key: 'versionName',
        disabled: true,
        placeholder:'请输入版本名称',
        maxLength: 20
    },
    {
        type: 'input',
        label: '版本号',
        isShow: true,
        key: 'versionCode',
        disabled: true,
        placeholder:'请输入版本号',
        maxLength: 50
    },
    {
        type: 'textarea',
        label: '版本描述',
        isShow: true,
        key: 'versionContext',
        disabled: true,
        placeholder:'请输入版本描述',
        maxLength: 50
    },
    {
        type: 'upload',
        label: '上传',
        isShow: true,
        key: 'versionPath',
        fileTypes: ['application/vnd.android.package-archive'],
        placeholder:'请输入组件地址',
    }
]


export const FilterModelProps = {
    total: 0,
    current: 1,
    pageSize: 10,
    name: '',
}
